function makeList(selObj,newObj) {
    //Generate the new list from all items not selected in selObj
    var selElem = document.getElementById(selObj);
    var selIndex = selElem.selectedIndex;
    var newElem = document.getElementById(newObj);
    var tmp = '';
    newElem.options.length = 0;
    for (var i=0; i<selElem.options.length; i++) {
        tmp = selElem.options[i].value;
        //skip selected item
        if (i != selIndex) { newElem.options[newElem.options.length] = new Option(tmp,tmp); }
      }
}

function displayRankings(selectorObj, firstList, secondList){
    //Given whatever's selected in the selectorObj, either make the first or second list visible
    var selElem = document.getElementById(selectorObj);
    var selIndex = selElem.selectedIndex;
    var first = document.getElementById(firstList);
    var second = document.getElementById(secondList);
    first.style.display = "none";
    second.style.display = "none";
    first.style.visibility = "hidden";
    second.style.visibility = "hidden";
    if(selIndex == 1){
        first.style.display = "block";
        first.style.visibility = "visible";
    }
    if(selIndex == 2){
        second.style.display = "block";
        second.style.visibility = "visible";
    }
}
